/**
 * Created by YongX on 2017/5/27.
 */
import Router from 'vue-router';

const Index = resolve => require(['@/components/Index.vue'], resolve);
const UserInfo = resolve => require(['@/components/user/UserInfo.vue'], resolve);
// import Index from '@/components/Index.vue';

export default new Router({
    mode: 'history',
    base: __dirname,
    routes: [
        {path: '/', name: 'Index', component: Index},
        {path: '/user/info', name: 'UserInfo', component: UserInfo}
    ]
});
